const files = require.context('.', true, /\.jsx$/);
const modules = {};
files.keys().forEach((key) => {
     if (key === './index.js') { return; }
     modules[key.replace(/(\.\/|\/index\.jsx)/g, '')] = files(key).default;
});
const components = {}
Object.keys(modules).forEach((key) => {
  const name = key.replace(/\.\/(.*)\/index\.(jsx|vue)/, '$1')
  components[name] = modules[key]?.default || modules[key]
})
export default components